package com.ys.gulimall.auth.feign;

import com.ys.common.utils.R;
import com.ys.gulimall.auth.vo.SocialUser;
import com.ys.gulimall.auth.vo.UserLoginVo;
import com.ys.gulimall.auth.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Description:
 * @author： yeswater
 * @create： 2024/5/15
 */

@FeignClient("gulimall-member")
public interface MemberFeignService {
	
	@PostMapping("/member/member/register")
	public R register(@RequestBody UserRegisterVo vo);
	
	@PostMapping("/member/member/login")
	public R login(@RequestBody UserLoginVo vo);
	
	@PostMapping("/member/member/oauth2/login")
	public R oauth2Login(@RequestBody SocialUser socialUser);
}
